博客
关于我
asp.net代码练习 work016 fileupload文件上传
阅读量:313 次
发布时间:2019-03-03

本文共 743 字,大约阅读时间需要 2 分钟。

????????

?? ASP.NET ??????????????????????????????????

????????

????????? ASP.NET ?????????????????????????????????????????????????

????????

???????????????????

  • ?????????
  • ?????????
  • ????????????????
  • ??????????
  • ??????
  • ??????????

    ???????????? MappedPath ??????????

    string savePath = Server.MapPath("~/upload");if (!System.IO.Directory.Exists(savePath)){    System.IO.Directory.CreateDirectory(savePath);}savePath = savePath + string.Format("\\{0}", FileUpload1.FileName);FileUpload1.SaveAs(savePath);

    ????????

    ?????????????? Web.config ?????????????????????????

    ????

    ????????????????????????????????????????????????

    ????

  • ? WebForm1.aspx ??? FileUpload ??
  • ?? OnClick ????
  • ????????????
  • ? Literal1 ?????????
  • ?????????????????????????????????????????

    转载地址:http://firm.baihongyu.com/

    你可能感兴趣的文章
    Prometheus监控教程:使用Grafana展示主机基本信息
    查看>>
    pytorch中如何使用预训练词向量
    查看>>
    Prometheus监控教程:使用PromQL查询监控数据(上篇)
    查看>>
    Prometheus监控教程:使用PromQL查询监控数据(下篇)
    查看>>
    Pytorch中关于forward函数的理解与用法
    查看>>
    Prometheus监控教程:安装部署
    查看>>
    Prometheus监控教程:配置介绍
    查看>>
    Pytorch中tqdm进度条的使用
    查看>>
    Prometheus(2):SpringBoot 2.X集成Prometheus
    查看>>
    Promise 原理解析与实现(遵循Promise/A+规范)
    查看>>